using AIVision.MaoKe01.Application;
using AIVision.MaoKe01.ViewModels;
using AIVision.MaoKe01.Views;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Data.Core;
using Avalonia.Data.Core.Plugins;
using Avalonia.Markup.Xaml;
using Prism.DryIoc;
using Prism.Ioc;
using System.Linq;

namespace AIVision.MaoKe01
{
    public partial class App : PrismApplication
    {
        protected override AvaloniaObject CreateShell()
        {
            return Container.Resolve<WinMain>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<ViewTop>("ViewTop");
            containerRegistry.RegisterForNavigation<ViewMain>("ViewMain");


            containerRegistry.RegisterApplicationTypes();
        }
    }
}